//
//  ViewController.m
//  testZJH
//
//  Created by azi on 17/4/28.
//  Copyright © 2017年 yugang123. All rights reserved.
//

#import "ViewController.h"
#import "CenterModel.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    //您有 <big><font size="5" color="#FF6600">201</font><big> 张待报证还没排队
//    NSString *html = @"您有 <big><font size="5" color="#FF6600">201</font><big> 张待报证还没排队";
//    NSString * htmlString = @"<big>您有 <big><font size=\"5\" color=\"#FF6600\">201</font><big> 张待报证还没排队</big>";
//    NSString * htmlString = @"<html><body> Some html string \n <font size=\"13\" color=\"red\">This is some text!</font> </body></html>";
//    NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[htmlString dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
//    UILabel * myLabel = [[UILabel alloc] initWithFrame:self.view.bounds];
//    myLabel.attributedText = attrStr;
//    [self.view addSubview:myLabel];
    
    NSLog(@"BBBBB%@",_firend);
    
    UIButton *btn = [[UIButton alloc]initWithFrame:(CGRectMake(100, 100, 100, 30))];
    btn.backgroundColor = [UIColor lightGrayColor];
    [btn addTarget:self action:@selector(handlePresentVC) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:btn];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)setReturnBlock:(RetunBlock)returnBlock{
    
   
}

- (void)setFirend:(NSString *)firend{
    
    _firend = firend;
    
    NSLog(@"AAAAAAA%@",_firend);

}
- (void)handlePresentVC{
    //NextViewController
    [CenterModel presentVC:@"NextViewController" with:self with:@{@"1":@"abc",@"2":@"def"}];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
